Added printf set functions. Comments still missing.