add style guide
examples/ftm: fix style and add comments
Fix typo, lengh -> length.