Bug fixes and added a changelog