changed initialization

fixed tests, readme, package.json