Raise ValueError if padding bits are not zero

Closes #16.