Merge pull request #44 from ccding/master

update fatal to same stile as line 410
revise log handling

All the log-related operations are calling functions in util.go. This makes
the consistancy of the logs.