Library cleanup, prepare for release

Also added a change-log