Couple of things, you said you "greased" the rails. What with? I haven't been in one of these window systems yet but are there any micro switches visible on it? Excess lube could have fouled one up if so. From what you're describing it sounds like an intermittent operation problem. That is usually caused by chaffed wires grounding out where they shouldn't. With the pin popping out and the window getting wonky has it moved or pinched any of the wires going to the motor? Swapping the switches didn't do anything so that would seem to indicate the problem is inside the door itself.