Major cleanup of `Core` module and added documentation

Experimenting with inline documentation styles.