Configurable margins and ruler calcs on ruler class

And some comments on methods