Your questions are of a general nature, but good answers require detailed information on your application.
General answers:
How does the error-amp of a switch mode power suply work?
They adjust the operation (usually duty cycle or frequency, sometimes firing phase) of the output stage to...