Working encode/decode, started adding commands (encsummary)