Merge pull request #10 from jiafulow/prepare-v015-1

Upgraded to work in CMSSW_6_2_0_SLHC12_patch1
Changed C++ classes to C structs in AMSimulationDataFormats
Updated codes following changes in AMSimulationDataFormats

- Changed duplicate pattern removal in PatternGenerator
- Added minFrequency option in PatternGenerator
- Some code cleaning in various places