code added, missing tests and readme