Issue #17 better validation of amount values.