Incorporated LJH final comments into ms. Added code for doing simulations. This will need to be modified to work with updated structure.