preserve direction when in spec
fixed CHeap
minor changes
added register_alias command