So I've got some villagers,and I got them start breeding,but they are always stacking in the corner and I can't trade with them because they are all there,what's the problem?
If you hadn't said they were breeding I would have guessed that none of the doors were valid and they were trying to get to a village way off on the shore.
How are you making the doors valid?
A non transparent roof and a skylight above every group of 4 doors?
I use glass as the roof
Any non transparent blocks?
Otherwise the doors won't be valid and if there are any valid doors somewhere else within I don't know what distance (with a villager to detect them) your villagers will be trying to get to them.
To be a valid a door must have more nontransparent roof blocks on one side than on the other, counted within 5 blocks straight out (not counting roof over the block the door is standing on.)
Scroll down a page to "Housing"
The easiest way to make most of your doors valid would be to place a nontransparent block above the center of each group of 4 doors.