added autotyping and submit for 'q', added an external file for analytics