implements ls and rm (closes #1, #10)