Split up directory and files mode, update docs