Add changelog

And a couple of bug fixes.