Changing API, adding factory feature, refactoring tests and code
Removing PojoryFactory file