Added tk class WIP. Bug with globals