added properties for state, num_columns, and num_rows, closes #13, #20