sdplib added, plus important fixes in getindex