split the code into src and test
started documentation. Its a PITA