AVALANCHE: Move some parser functions to Dialogs. Improve some comments