Allow global setting of options; added documentation