Updated static functions createInstance()
updated index.php to require and simplified page execution