added attribution for code source and improved description.