added overview to readme
fixed a bug, added a test which exhibited it