6/16/2014 modif/added functions and index.php