added possiblity to add formula with package and mode; centering formula seems to be a bad idea