Detects margins around the rails
Merge pull request #252 from tkhyn/master

Detects margins around the rails