simpler interface
updated tests and readme