c++ class + main file example for reading a charmm dcd