added grandmaster_hash function that generates master_hash object which contains all stations and pair objects