Cat_bar and tborder is history

yeh, finally cat_bar and tborder is completely removed from the files. 
Also some smaller fixes for bugs.