fixed npts calc
change timescal for data from xmap files to microseconds
using better file open idiom
massive rewrite of xrm_mapfile -- mostly working, may have counting error wth adding rows