Cleaned up some latent errors and added a changelog script