Added more comments on code conventions
Fixed the internalTitlebar not being displayed properly on linux