Changed debugging messages, added functions and minor DCC fix