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

implemented maxNumberOfLine functionality