Updated documentation and formatting