Added Point struct and cleaned up line generation