Added try catch and type validation to the decimal field

various other small edits