Added php docs on functions