Added functions for receiving a byte, and setting a handler for received frames.