Keep track of user changes to parameter values (#112). Also some minor cleaning up.