updated deprecated function eregi() per #31
updated deprecated function eregi() again per #31
updated deprecated function ereg_replace(), probably fixes #31
mostly working rebuild script. Fixes #26
updated user message in rebuild
fixed doc type declaration in 101861, fixes #33