added a method to read text by line
minor changes
trivial stuff
minor changes