Starting valgrind pass. Fixed horrible overflow bug due to two missing characters.