documented map, removed unnecessery parsing code