Added tests and update the read me.