created types.h. replaced stdint by sys/types
added take 2 in printf