Added additional input argument check

Sizes of OBJ & H need to be matched.
Added COPYATTACH public method

New method attaches a copy of HG object