Added main.php

2 main functions