dev
updated Makefile
Make Makefile version number parsing more robust
minor typo
Optimized by replacing `endl` with `'\n'`