added more detail to readme
fixed bug in unused code