added MapReader class
started fixing output for kattis
merged conflicts