separated rx from tx
added header file with global constants