added change last point function
Merge remote-tracking branch 'kalamees/master'