Well the concepts are simple...
Nothing goes into the sump unless it is gravity fed... Nothing! (in the rare case where the sump (or refuge) is higher than the main tank, the reverse is true.
The pump (or pumps) can be placed in the sump and plumed back into the tank or connected externally. I ALWAYS plum return lines over the top (as opposed to connected to a bulkhead) in order to create siphon breaks (e.g. drill holes at the water line) Note: Pluming bulkheads is acceptable in closed systems.
Once you plum it and run it. Turn it off. If it overflows, you have too much water in the system or you are creating a siphon and need to drill an air break. If you cannot cut the power without it overflowing, you have built it wrong. You WILL lose power at some time (even with a ups). This should not cause a flood in any case!
You can mark high and low water marks on your sump to help with water top off and changes.
My $.02 worth
johnny