examples/ftm: fix style and add comments