read_in_file now skips duplicate entries

and other minor tweaks