change :directories to :src-paths, add :doc to task, minor refactorings