make sure threshold configurable

also add settings for future options
implement status check
small refactor
Merge pull request #5 from primedia/sb_config_block

SB config and status checking