Formatting of code and examples changed