updated code inside posts to match octopress coding styles