rmdir debugged, appears to work right. Next: rmlink and cp