Theory and Application of Quantum Molecular Dynamics