Bug fix + Added export capability

Fixed several bugs, implemented automatic export of the resonance curve
in .mat, .fig and .eps and introduced new stopping criterion when the
error is not significantly changing.