Renamed main.py
Moved input binding to dictionary
Error checking workover