fixed a lot of bugs, mostly works. The list is mostly sorted, but not perfect. Duplicates exist, need to find out why.