unit test, readme, travis and a couple of small fixes