Smart gun features