renamed variables, added error messages.
Merge branch 'master' of github.com:derekmc/JSType