Add constants and comments.
Server now can shutdown via exit command