Improve release script

Add comments, auto-detect upstream remote, and update changelog