cleaned some code.
removed testing line.
Saving pages now implemented.