fixes #3 - Broken unit tests fixed.
closes #6 - Now possible to get result as json/object.