Motor APP integrated and compilation errors fixed