improved documentation
basic implementation for generic pagination
removed unused code