adds comments, sorting algos