Improve formatting and documentation consistency