Fixed errors (out of date info) in readme
emit a warning if given the wrong type