The tutorial series for this code is here:
http://www.jasonamartin.com/posts/getting-started-game-modding-europa-universalis-4-part-1
This training series helps you get started understanding the mod system in EU4 by making a simple in-game event with decisions.