SortLibGui refactoring and comments added to public header