split .h and _main.cc files out
Merge pull request #1 from joshhyman/master

split .h and _main.cc files out