Using internal dump function

This encodes the indentation used
adds ability to check if serialisation fails
Using English spelling