Allows only portrait orientation.
Adds working code.