added directory generator, fixed relative links