update return type for print funcs

and updated userDefineLang to make clear that "else if" is actually
"else" with a following "if"