Add ruby syntax highlighting to README examples and remove trailing whitespace