Added grammar tools and implemented driver program