Modified this script to add support for orientation.

Edited the documentation to highlight the support for orientation.