PR #180: Project Structure OverhaulComprehensive project restructuring for improved type safety, testing, and documentation