Minor code style tweaks.
Add changelog.
Bump version to 0.5.0 and publish.