added config value "margin"
and some formatting