Global variables

Made some variables to be global so they can be called from main.lua
Also added that "ToDo" comments ;)