Could be you tensions (bottom & top) aren't even on your machine. Check your manual to remedy this problem. You may want to use a rolling foot, too. Ruffling of the border is probably a problem with one layer (border or pieced top) getting stretched more than the other.
Another hint: spray the edges of your pieced top and iron them flat (again) before applying the spray starched and ironed border.