Wilke (a colleague of mine) has developed a very interesting tool to learn about the SPWebConfigModification API (link).
This tool gives an example of web config modifications without actually applying them to the web.config — perfect for learning and testing.
Very well written article, so don’t wait any longer! 😊