sendString + several fixes

Rebased version for #34 & #36