Heavily modified the algorithm to move a vertex of a brush.
Minor fix to vertex editing.
Fixes to vertex editing.