src: finish implementing the core gauge library.