Added Orientation option to layouts and fixed implementation.
Fixes #3