Remove obsolete section from gradle file
Some better error handling
Keep paragraph formatting.

One change introduced is that a file will end with a newline, always.
If one does not exist, it will be introduced by the parsing.