Added view source function

(see gh-pages for commit description)