Added lots of mapping routines to go between the various coordinates. Still need documentation and testing, though.