As mentioned by RickF, your questions are pretty general. Instead of making the operation of switchmode power supplies more complex than it has to be, try this book by John D. Lenk, "Simplified Design of Switching Power Supplies". It is an EDN publication, Butterworth-Heinemann...