Fixed a few small things, printing stacktrace when invoking a method.