fix: codebase improvements and fixed bugs.
change: unused files has been removed.