An Introduction to String Theory and D-Brane Dynamics