Added defaults and more documentation.