Change to Matlab like subblock specifications

Matlab like subblock specifications ((row_start:row_stop,
col_start:col_stop) -> (first_row, last_row, first_col, last_col)) are
used throughout to avoid confusion.
Fixed indenting and capitalization convention in types.h and all
associated places in the code