Some minor fixes
errf: Error message formating function