fixed interface change of controller main
fixed newlines
relocated periodicWaitForEqual
fixed physicstest