Fix DHCP, code style, PRIMARY_TABLE, and config options
Merge pull request #72 from changbl/working

Fix DHCP, code style, PRIMARY_TABLE, and config options