Style and structure of the program war reworked

Style and structure of the program war reworked to make it more clear
for reading. Comments were added.