Create main2.lua

Modifier definition and implementation included, a few functions to help make the modifier code tidier, changed position compute code to another formula, attempted to integrate the drag'n'drop with the