Implemented logout.php

Updated comments on functions.php