replacing special tags with actual pageNumber and numPages

...ter

this commit resolves #4