refactored packet radio code mostly into separate file.
began writing stateful packet decoder.