Add const for value operation, refactoring , remove warning of loss data...

..., add comparator operators for value