Minor docs enhancements and code formatting