Made dynelf work with new elf implementation.
Added docstring.