Added token list to the DOCUMENT structure to maintain document text and for easy token manipulation.
filterData function now supports lists instead of strings. Regex no longer required.
Added the getTotalDocuments function.
Fixed error where multiple entries were being added for one document rather than incrementing its tf value.
Changed idf and normalize tf implementations to global scope rather than token specific scope.
Fixed getWeight implementation.
Improved efficiency of getWeight method.
Fixed result fetching algorithm.