Fixed typos and added some more instruction about edge types and the pseudocode