change ptrarray2d -> ptrarray2d! and comment cleanup
indent