Added main class and references for setting various things