removed the "return undef" to satisfy perlcritic

I prefer to be explicit in what I'm doing, but the code works this way
too
Changed Dia subobjects to allow debug flag
Adding usage2dia

Still needs to be tested but the majority of the code is complete.