added comments and user authentication