Cleaned and commented some code. GUI part of pickCategory finally seems to work