Refactored the remainder of the `macrogl` package.