Fixed example.php to give setoauth a string, also added functions to the automatic class.

Let me know if I'm mistaken by making setoauth only accept a string but I was getting errors otherwise.