implemented print setting, updated example and readme