Cleaned up the code a bit, and added LaTex-report