jklew: Ran valgrind and fixed memory leaks
Merge branch 'master' of https://github.com/emreturkoz34/apc524