Add version output to text examples and fix viewport orientation.