Fixed indentation on code examples

Mix of tabs and spaces and inconsistent indentation looked messy.