finalized ls.cpp and created tests/ls.script test cases for reviews