Rewrite application and move old files to lib/old
Add files so graphs can be generated with a log y_scale