Added migration functions

- Math.E
- Math.PI
- Moved the helper functions up to the NodeModel class