added code for syntax collection and the correspoding gui