Updated documentation to be consistent and use @c for code snippets.