reads and parses html files, creates inverted index and stores to file