Fixed wrong plugin instructions on the top.

You don't add this code to functions.php to create a plugin. Sorry for the confusion.