Added code coverage and ensured sub folder checking for tests
Also moved src ts files to libs so they don't get bundled in other TS projects which use this package