Fixed SLInsert, added test code to main
Merging. Fixed SLInsert, added test code to main