Added a quit message, made the string building more pythonic