Simplified setting options; added AMD loading support; updated example.