Fixed printf, added fprintf and vfprintf