Added more comments, case-insensitive 'quit' and test file