Fix typo
Make a copy of config file for regular use

1. Copy btte.conf to btte.conf.dbf for debuging
2. Change the values of arguments inside the btte.conf
for running testing env on regular case.
Make forward declarations of static functions and move their defs to tail of the file