updated readme
moved test code out of package
fixed major bug with preparing queries