bug fixing - have the basics of reading and searching working