changed validator class

added a checkdouble method, and changed the check commission method and
they seem to be working now