Add main.php for the sake of testing.

Update functions.php to work.