Removed the old .inc file
Restores the original user settings for registration upon uninstall
Adds logging and PHPDoc
Fixes logouts, the block and other small things.