Some changes

Add checkbox "automatic analyse".
Add and change some error catches.
Add ability to save text.