small fixes on functionality
fix type for numeric representation
remove unused code
fix scale and round mode