#338 Enhanced explanation of code