Fix all the type issues
Merge pull request #53 from Medium/nick-compiler

Fix all the type issues
Bump version to 0.4.0