Changes that make code more readable

(1) Removed magic numbers.
(2) Removed the array representation of counted repetition ({m,n n})
with inner class object.
(3) Removed unnecessary or trivial comments. Changed java doc style
commenting to normal comments.