Implemented, tested and documented quit command. Closes #267.