Implemented Logout and Added documentations to classes