log module works now.
Added  config:set/2.
More handle_info/2 added.
Correct the wrong way of state changing.