Added a comment to get_sln_elems()
Dynamically adjusted the size of ligh, ligd, slnd and cnfh