Few changes to the generator script plus additions to htaccess