Add error checking to obj_xref.pl and add command line support for data