Value formatting. Fixes #101 #97 #87