Add changelog, improve code style