Add example and fix trailing whitespace in output