updated readme, added description about tests
changed types validation