Refactors in order to make options and rules available to the user
Adds style to the example