Streamline setup procedure for SSA, now a seperate function

-update licence file format
-rand variable will actually be random, no particular initial state
-other minor fixes