Add useful comment, fix compiler warnings