Added commands, more player handling, and comments