Merge pull request #24 from knod/master

Fixes padding not being calculated properly, changed to not inverse. Also!
Tangle is less-non-working
Fixes calculations changing capacity array

- Instead a new array is made with that array's values and *that*
is changed.
No time for message! Working! Thing!