Useful utilities.
Starting to make newton stuff macro-based. Committing before doing more refactoring.