Updated UNDO action classes and merging.
Updated UNDO action classes.
Correct compilation error.
Updated UNDO species action class.
Made some bash scripts more portable.