Added a debug system to classes [#39]