Worked on more error messaging when dealing with hashmaps