Fixed documentation and added method getRows()