Added ability to export to JSON and unit testing.