Added class name parameter to fetchObject
Added support for passing class parameters with fetchObject