Updates to Example1 code

Use @RestController and add comments