Replaced code style with Gist, plus formatting