added gitignore, changed makefile and added profiling optimization