at last fitbitd should be ok now.

Todo:
add decode function
code refactor