added comments to modify.c - functions incomplete commenting still