Printf and a ton of fixes