Complete code reorganization/documentation so I can start showing it off. Fixed a few minor bugs and added a few minor features (being able to set graph legend visibility).