created a common setup method and implemented various inits to call it,  fixes #38
Merge pull request #39 from ahalls/master

created a common setup method and implemented various inits to call it, ...