Add a changelog
Improve key translation when writing
Code cleanup