graphics, code cleanup/comments for edu purposes