JPS: algo completed, GUI WIP
A lot of fixes