Improved GitHub snippets. Simplified code for other snippets.