Finished profiler; updated makefile and fixed multilayerMap namespace problems