Fixed a bug with the mutex. If two pause commands were sent without an
exec or resume command then the server thread will try to lock the
mutex twice and thus put itself to sleep. Fix was to unlock before
locking everytime the pause command is received.
added new documentation for sampling frequency