Cleaned up getStatements

* Renamed to getStatementGroups as it should be
* Created a new method getStatement to separate that code
* Renamed parameters for consistency with other methods
* Updated documentation to be consistent with other methods