I used to have a nice diagram, but I can't find it right now. However, installation is very easy. The input goes into the well (doh) AND you (optionally) need a one way valve somewhere in the line. They make "foot valves", which is nothing more then a one way valve that goes at the end of the pipe going into the well, so it is at the bottom of the well, and they usually have a screen to keep rocks out of the pump (I ruined one pump because I took the screen off and stuck the inlet pipe into the muck at the very bottom of the well). You can get these at most any hardware store for about a $20 bill. Another way is to not put a foot valve at the bottom, but use a one way valve somewhere in the inlet line. Doing it this way makes it easier to prime. Note that a foot valve or one way valve is NOT required. It is there to keep water from draining out of the inlet pipe. Without it, you have to prime the pump before each use, which is a pain.
The outlet goes to a water tank. I'm not sure if this is just a 25 gallon tank, or if there is anything special about them, someone else here will have to answer that. It's just a big accumulator, without which you would probably break the pump or bust pipes or otherwise find operation of the pump to be extremely erratic, depending on the pump. I think it would go into hydrostatic lock and break the pump and/or your pipes. Somewhere between the outlet of the pump and the water tank is the water pipe you take the water out of.
Here is mine: