updated the documentation and indentation.