Misc text and code formatting fixes