update readme, add comments, and fix $quit