Fixed bugs with installer.php and made default values smarter.