minor fixes

minor fixes in formula and added PrintAll