Added in necessary logic to program.
Compiling version.
Working initial version with Makefile.