Added first version of read-in, likely needs to be made more efficient