Added logging capability

The startup automatically creates a .nexpy directory in the user’s home
directory and adds a logging file, which can be opened from the Window
menu.