Added ERR function maco to debug.h

+ERR function is defined when DEBUG is > 1
	intended use ERR((stderr, "Error message."));
+LOG function is now defined when DEBUG is > 2