- updated README and the factory class with error handling