all: use myprintf for debugging
decoder: first stab at readObject