+Logger C:/err.log
+JOptionPane for error messages
+terminate NPE fixed