added new init method

Need to be able to set the values of the `showTableIndex` and `showSectionHeaders` properties in the init so they can be taken into account without having to call `reloadData` again on the table view (since it's called in init anyways).