Revamp of the library to increase modularization and streamline some things.