Current leakage with SPI?

The whole code is available here http://bit.ly/15ruDRL but there isn't much more than what I posted.

Could you refer me to a tutorial explaining what type of capacitors I need, and on which IC pins I need to connect them?

Could the few displayed LEDs that shouldn't be displayed due to the lack of synchronisation between the select of the line and the select of the column? If so how can I synchronize both? Do I need to chain the TPIC.... with the 74HC.... ?