Added validation documentation. Fixed some errors in pagination.