Refactored code, mainly main.py and renamed Funk