Updating documentation and code formatting