Added rows and columns as properties to avoid array count function in loops.
Fixed add function