Issue 15 maxrows

fixed #15