V0.01: Refactor and documentation.