Yes, you can flank with a reach weapon. Look at the back of Song and Silence for details.
Having reach means you threaten squares further from you, though not necessarily more. Generally, if you have a 10' reach weapon, you no longer threaten squares next to you, unless the weapon specifies otherwise.
I believe a whip has a 15' reach.
You cannot flank with a bow.