Fixed uint <-> value_t conversion
Removed debug printf messages