added hex value comments
renamed the states