Updated algorithm section, missing KCLs (but it works!)