added setValue and clear function for inputs

Hello!

Is this code acceptable to you?
These methods were useful for me, so might be useful for somebody else.