Added method for gathering true lines, ogranized code a little