Add explicit types so that it passes the noImplicitAny rule

Also updated version number. Added appropriate types to all the functions where I could find them, otherwise typed them with any. This now will compile for typescript compilers that have the noImplictAny flag set.
Change model to any to try and pass tests
Merge pull request #1257 from gscshoyru/patch-2

Add explicit types so that it passes the noImplicitAny rule