Cleanup of unused variable
Bugfixen. Also cleaned up initial text-file read for less \n shenanigans.