Comment and make code easier to understand.
Delete unused user class.
Simplify 'tick' message code, and add comment.
Add comment.