Changed Hashmap variables to Map
Added read/write methods for solutions