Convert messageToTranslate to object if it is a string. Added documentation. Fixed #1, #2.