Fixed empty overwriting issue. Now can save editted pieces and load them properly.
Fixed: Changing name of piece resulted in incorrect file output.