Updated comments.
Fixed bug that stopped site map etc. from being written if there was an empty page folder.