Added 'Edit page/post' link if logged in

+ PHPDoc style comments