Added error catching to text. Deleted duoble code from SyntacticalAnalysis.