got encode and decode working.  Next comes tests.