Fixed bug with S matrix being calculated incorrectly

Removed warnings from compilation
Removed OpenMM licence chunks from the top of files