Removed v1, main code in main.py, auxiliary functions in functions.py