Added class comments.
Refined NewlineEncoder.