Added function to print the quaternions