Remove the old SM lib.

Remove commented code