Added code samples and more structure.