Created Makefile for compilation.
Fixed references inside cpp files.