Write down changes and fix some compiler warnings