Fixed final installation step and other stuff.

Fixed errors given off in wrapper.php and index.php.