upgrade to use bundler, fix pad byte, fix tests
refactor chunks to own file