refactor codebase, correct docs