Refactored gh-pages compilation script
Reflected master updates to gh-pages