65c1a51
refactor: major refactor and cleanup. - Remove old code - Add comments - Reduce cyclomatic complexity - Add types to variables and methods