Implemented documentation to improve readability.