Modifications

Changed capabilities addition
Added deactivation function and registration
Added index.php for security against bots