character update

-change of visibilities
-implementation of comparable and comparator