Added Yaffs code to visual studio project and stated to move variable statements higher in blocks