Updated calls to substringfinder with new versions... bufio and io packages are added to prepare replacing the readline calls