Added more comments to better explain the code