One thing i will add, is that it might be a good idea to get some of that white lithium grease (at least i think its white lithium grease). Shimano does add a lot of grease in there, so you could reuse some of the large unused blobs that are still in there. Thats what i did. But if you want to make sure you have fresh grease, buy some of that stuff too.
According to previous posts:
The white grease is MOLYKOTE PG-75 High quality, German manufactured grease. Specifically designed for plastic and metal gears, as found in many ebike motors.
To seal the motor case: clean it off with solvent and reseal the case with a thin smear of Blue Hylomar.