Added undo group macro, additional documentation