Improved generating of class names

I now use os.path.splitext to generate the classname from the file name
instead of .rstrip. I also worked on the functionality of the cbs gui.