Remove unused functions
Update doc and spec
Remove line break in logging
Update dialyzer