Added psuedocode and update readme