"Also I'm trying to implement flocking in my game at the moment, so any actual source code would be a BIG help"

I found http://www.riversoftavg.com/downloads.htm does a good flocking demo, with full source code and components.

Was going to say it's a flocking good demo, but restrained myself.