adding boolean for orientation
orientation refresh
refactor and comments as well as screen orientation handling
remove imports unused