Modified the numerical part, added pdf with global error