added ability to check filetype for looking in corresponding comments