Done error handling for the JOption panes (if the user clicks cancel).  Added a few comments and added some spacing for increased readability.