Fixed flash sizes and alignment

Fixes #77