Finished MCChain Implementation and added main

still need to debug convergence