Adding data stuff, improving unit tests

* Adding dummy and testing stubs
* Added arg for maxDataLen config