added spec tests and updated readme