update ChangeLog and prepare for 0.4.0 release