Fix formatting and rewrite word scrambling