OMG PAGES
Cleanup and added some documentation.