Added only portrait mode

Application will only operate in portrait mode. Also did some
refactoring