Improve Documentation

Need to create clear and meaningful comments and docstrings, along with proper documentation. Use inline comments to clarify complex or non-obvious logic, and ensure all public functions, classes, and modules include descriptive docstrings.