Introduct the change_elem function which is to replace the change_angle, change_stem, etc... functions
Only sample elements that are in the minimum spanning tree
Removed some obsolete code
Removed more obsolete code