rewrote development main method
handles exceptions for actionPerformed