added config.h
Merge pull request #2 from rayhogenson/fix

fixed some bugs