improving readability and correcting minor mistakes