Added more error output and fixed go warnings. Added print typedef for printing without args.