updated algo instructions
added tutorial on KM, modified algo instructions