Fixed file output and cleaned up the html.

TODO: File input and output are still hardcoded to my local directory.