Fixed links and added directory security