Updated line indexing to use bufio.Scanner.Scan() rather than bufio.Reader.ReadBytes() as it allows for more line terminating formats.