Minor refactorings
Added Pyside GUI