enabled logout, deleting cookie file
removed obsolete main() function
Merge branch 'stable'