October tutorial code

code all ready, double checked, link fixed and long hand version of the paper added.