adding in more mapcube functions
Stripping out a bunch of routines from the main file