fix #52

@theopolisme: please merge or revert code which will be accidentally overwritten; Please clean the whitespace (too hard to do this with ay webinterface);
please delete branch "categorycleaning" as already merged

thx. ;-)