implemented Mergesort (needs to use insertion still) and improved comments and format everywhere