add ls.c and modify a few others.