minor modifications to fit SPEC
add some exception handling to GUI