Finished page write, polished code and comments.
updated test.