added interpreter definition
refactoring and bugfixes
fixed urllib exceptions, and KeyboardInterrupt