Implemented invariant mass

Code has been commented.
Add .gitignore and makefile in repo.

Edited the README with instructions