added to readme and added idiomatic file reading