added print method to molecdyn