added some defines, some debug messages, and required library file changes note