minor changes
ported to qt5
different initialisation of the optimizer