added default categories for every new user!  therefore there is no
possiblity to have a null category for the test user any more.  also
did some refactoring and added comments.