move code into cpp files; build all cpp files; ignore vim swap files;
Merge pull request #1 from egwynn/master

move code into cpp files; build all cpp files; ignore vim swap files;