added map()

put documentation too, working on adding documentation for the rest of
everything.