refactor: ran prettier and better filehandler
ran the prettier command. made the filewriter write to file once per unit and not three times. Uses endsWidth instead of startsWidth for extension checking
ran the prettier command. made the filewriter write to file once per unit and not three times. Uses endsWidth instead of startsWidth for extension checking