Added Changelog and beautified code