Have a look at the message at LED RGB 64-control individually - #12 by system - LEDs and Multiplexing - Arduino Forum
That's how to wire it (well, you won't need two chips).
As for coding, it's just a shift register. place the numbers in a variable and shift them out. Think of it as a strip in which you control each LED individually.