Add global $post, remove deprecated parameter

Prevent undefined index
Prevent deprecated notice on - get_the_author($post->ID) (removed as not required)
Remove $class variable as not set

Prevent undefined variable notice on $class, not usually required as WP will do the work.
Merge pull request #25 from elliott-stocks/master

Fix notices with functions.php