Fixed some compiler warinigs, minor bugs and documentation in the OpenMM code.