Implemented isObjectNotNull;
Added some comments.