Modifying Windows line counting method slightly

- Some bugfixes to paginateLines method
- Still needs some improvement....