refactored updatemap, now using a wrapper interface on top of the c interface
refactored sortcells. Now uses the new wrapper style interfacing method
re-enabled dist and fringecells methods
minor edits