Fixed some Code Analysis warnings.
Fixed formatting of some doc comments.