add comment regarding boolean in constructor about encoders