Fixed a major typo, added some hardcoded fixes relating to hidden directories, and resolved an error where main.index had not yet been created.