removing comments.
implementing encoder.