Encoder structured

ready for input from Dashboard