Makefile added. Removed unneeded crap from main.