removed debug() function that caused problems with some compilers. Added copyright information in all the source files