fixed typedef/pointer/print errors