Calculation Of Exchange And Anisotropy Energies In Single Molecule Magnets