Removed unnecessary global variables. Version bump to 0.2