Fixed loop-ending logic & added...

... support for the temp .txt file to be read as well. Slightly icky
right now :P