Removed unused namespaces
PHPDoc & clean up
Fix logout session