Added grammar-detection example, Added required includes and added C++ highlighting