resolves #11 fix block size calculation

Work on the padding required for output to look correct.