added some style for the document
finished document preparation function; added functions limiting words in translations and removing empty words