Fixed a bug where a single measurement wasn't possible.
Also cleaned the restrictions on input arguments.
Lots of smaller corrections and cleanups.

There is still at least one input bug left, a segfault when measuring at <3Hz.
Merge branch 'master' of https://github.com/PitayaDT/RedPitaya