Cleaned up a few headers.
Updated Makefile to allow profiling
Ignore gprof outputs.
Const correctness.