Unittests added and readme changed