added directory parameters
documentation update