Initial commit of reflowing code

Hack hack hack!