Added features to use it for CM9 and CM10
Merge pull request #2 from Tof37/master

Merge Padding fix properly in master branch.