Fix dialyzer calls

also make sure that dialyzer can be run as a top level
fix errors generated found dialyzer
Merge pull request #6 from ericbmerritt/master

fixes for dialyzer found errors