Restructured the masters and unit cs script files and added many constructors