Update dump.php

At some points, the code was hard to understand.
Merge pull request #21 from malukenho/patch-1

Update dump.php