Added comments to dynarray.c to document the code