fixed error with directories not there properly
got all variations of commandline input to work with all flags besdies -R, still working on -R