made window 1024 x 768
Properly closed AntTweakBar on program exit. Switched some raw pointers to smart pointers, removed unnecessary passing by value in several functions.