Revert sample size calculator, more verbose error messages, lock print lines to prevent clobbering