Branch is ready for merging.

Fixed a bad memory access bug, removed all debug messages and made the main.cpp file look more like a teaser or something.