Format tools

Make messy data readable and valid.