Fix receive message function: buffer size must be greater than zero. Receive function parameter 'len' is the max read size.

Changed non-blocking to blocking send/receive.
Mount command error properly processed. Identation fix.