Lava flow code reformatting