fixed some links and optimized pdf output