Reading from file now works.
Merging and polishing up.