add a lot of comments to fix warnings