Remove Debug and switch to eceptions in Encoder / Writer API