Added a weak Makefile, tweaked .gitignore to ignore object files and executables, and made minor tweaks to the code.