Added comments to each function in maps.jl