added comments 

added comments and merge sort/quick sort for buttons and sliders