some minor CS fixes and typo in doc