implemented maxNumberOfLine functionality, refactoring
Merge pull request #1 from michaelkamphausen/maxNumberOfLine

implemented maxNumberOfLine functionality