Cleaned up code.  Still need to complete coding and decoding algorithm.