Update sst.cpp

Cleaned and commented after a days work. I will be looking at ncurses or similar soon.