added support for E in pack (double)
removed unused variables
Merge pull request #2 from schmurfy/double

added support for E in pack