Adds all parameters, clean up and fixes the sampling problem

Again thanks to @bernhard_thiele for help me understanding how to
properly implement sampling for input signals and hold for output
signals.

All parameters are now included except `InitByVoltage` which
I'm not sure would be necessary at all.
Added documentation.
Correct the max and mintap condition and improved the test example.