Added setup wizard.
Fixed minor bugs.