Added OOP wrapper for creating job, added more tests, bugfixes