Refactoring of anal_ebc.c and a fix of pdf there.

Let's prettify the code a bit and fix pdf command.