fixed directory printing, documentation