debuged pad miror to handle corner cases
Merge branch 'master' of github.com:scatnet/scatnet