Here's a schematic of it, you can ignore the transistors, cause they're all wrong.
**broken link removed**
Basically it charges from a computer through a USB port, then you unplug it and it charges a usb device through the same usb port.
What the transistors do is change the input/output of the usb port.
Whenever the usb is plugged into a computer (by a male to male connector) the tranisistors Q1 and Q3 turn off (They are normally on, connecting the 2 batteries in parralel) from the Data+ port (5v), it also turns off Q4 (normally on) supplying the 5v to the usb port from the boost converter. The data+ also turns on Q2 transistor (delayed by the capacitor and resistor so that other transistors switch first) which connects +5 to the charging circuit.
So basically, computer = charge battery, Device (which doesn't supply the Data+ voltage) = Charge device from battery.
The IC arn't important, all they are are li-ion charger, battery protection, and step up dc-dc converter.
Whenever I finish this it'll be the smallest high capacity cheap usb charger ever! If i were to resell it... Whenever the batteries are connected in Parralel the combined energy will be 4800maH(
**broken link removed**) (free shipping
. That is a ton of energy compared to other things like minty boost which is only up to 2200 maH, plus it's rechargable.