Added mode bits.
Added error correction
Added useless comments.