ip address error checking, moved main.py up a level