Cleaned up defines, set MAX_BUF to 20, added hex debugging for incoming signal.