added some fuctionality to receiver - cannot detect preamble