Fixed bug with nothing return from not-void function. Improved makefile to use variables