The m-file code is made available here. The code is pretty much self-documented, readable and follow-able, so you will know how to use it immediately (or in the worst case, eventually j/k). Good luck!
In brief, the SA code is made for maximization problem, that is, you will need to formulate your problem as a maximization problem when using this toolbox. The plot above shows the score at each iteration; each symbol means the following: