I have updated the final version here: http://emacs.stackexchange.com/a/16746/115

(also attached for reference)
--

--
Kaushal Modi