Fix for scrolling Issue #11

various optimisation improvements to improve speed of scrolling very large files.