switching layers, work in progress
Merge pull request #16 from rajatkapoor/scroll

Scroll position and direction added
merged, is not fully functional yet