fixed id generation and currupt page text
Merge pull request #58 from dom-mel/master

Fix ID and pagetext on addpage