Added Comments and commented out smooth transition code