SASS: Added in MarginFactory. (Issue #418)
Also refactored code for better classification.
Merge pull request #423 from am11/master

SASS: Added in MarginFactory (Issue #418)