fix warnings when running with --noImplicitAny

There were a lot of warnings being thrown when I was compiling with --noImplicitAny option so I fixed up whatever signatures I could to get rid of the warnings.