Should I remove trailing spaces also from the scripts (attached)?
This file is a black box to me; I'd remove them using Notepad++ menu command.
If the mod starts without removing them (in the oxce 8.0 beta version above), then you don't have to.
But in general, removing trailing spaces from anywhere should be completely harmless and not break anything. I'd recommend it.