Fixed bounds error on mergesort loop (which was somehow correct before too) and added comments to all