Adjusted the action system

- Removed the stop() method
- Beautified some functions
- Added an id to all nodes
- Added a utility for reverse traversal of arrays