Rewrite dpacker again
Add JSDoc