added new functionality to load from file without giving csv name
throws exception if more than one object exists in the file