Shift register help.

It is saying "ssPin not declared in scope"? (Sorry if It seems if I am just trying to get code without work, for me to really understand the shift register I just need to get it working and see what each element does.)

Also MOSI and MISO get connected together right? So MOSI is arduino (arduino is master), shift reg is MISO. and what does slave select do (SS pin)? and what about SCLK? Is there another way to do this as well as SPI? Just curious so I can learn as much as I can and can go read about it!