clean up of ifdefs in transceiver module
fix for #117 and position of preprocessor directives
some debug enhancements