Added code samples and improved description