modified tree somewhat to put KMeansRex original in tools, moved Sam libs to own directory, and starting to go through lmsvd.m to add comments