Extended the rules, simplified the functions and added help comments
Change visual appearance
Updated help comments
Figure that summarises chapter 5