rm file implementation and cd bug fixed