Fixed toxcore undefined, added function to create new tox file