Added comments and got sub1 and sub 2 working