Script broken down in modular sections... still needs work on breaking down the ControlItems file, which is still a  little long and clumsy