Cleanedup Maindata.cs