Finished writing code to fill in hash maps, added some debugging,
refactored.