Code clean up
Set the value when changing parameters

This breaks typing in the number, but fixes the + and - buttons
Align return type