Added comments
Added more comments to help debugging