Change Zero_edges routine to zero_edges
Change maskk for mask_key to have a single homogeneous keyword in all routines