fixed mistake, added test, updated readme