added verbose option (currently disabled) for enabling cost and beta function output