fixed .rows method, refactored code to simplify, added raise exceptions, tested subtract_value_from_row_in_array