started fixing major det.ac.map bug - looks fixed but still lots to clean up

bug was that det.ac.map didn't apply to abar
replaced det.ac.map with function
still to do:
rename det.ac.map, document (clean example), fix det.Q.map, fix det.Q
example (disabled), include example det.g.function,