Draft 2

needs work on exception handling and looping through all pages