Fixes the bug with critical node validation
Adds the comments for the classes (the comments for methods still should be added) and fixes yellow flags.
Adds comments
Fixes merge conflicts