added LICENCE and TODO, more test coverage