Added pseudocode and "intro"