Fixed Dialyzer warnings, still need some refactoring.
Merge pull request #29 from erldb/dw-dialyzer

Fixed Dialyzer warnings, still need some refactoring.