add page stats functionality and -s flag, plus removed .sh extension