big changes to md.c and update on the computeforces function