Refactored set_row() and set_column() methods.

Refactored mainly to group optional parameters together. Also updated the
update the corresponding documentation.