aded a stop level parameter
corrected bug in deleting of chosen point
corrected bug in scaling
working version !
bug was postgres number rows starting from 1, python number rows sstarting from 0 .