Added tests and readme stuff