Added ability to browse graph by clicking on posts, and cleaned some code a bit.