Code Cleaning and sub-VI creation