added version of LoadObj that automatically handles errors