Commented parseObject, added more error messages