- improved beautify-files to also remove brackets and parenthesises

- simplified logic