allow passing options

allow passing options in directive (see README.md)