Param checks

Resolves #9 by calling callback with error if invalid param. If invalid callback, we throw an exception.
Resolves #12 implemented for constructors of Objects and some key sync calls.