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

Fix all the type issues