Analysis Of The Quasicontinuum Method And Its Application