Added documentation and unit test

Made change to attach page settings to the newly created WebPage object
and included unit test and documentation