Removed unnecessary helper function.
Removed debug print calls. Wrote method to write links to file.
Fixed bug with filetypes.
Separated file regex from html regex.
Commit for whitespace