inverted y position of graphic output, changed a couple of comments