Introduction of debug module

This is the first commit to begin centralizing debug messages to improve code readability and maintenance