minor fixes for code style and a nice clean diff
move tableSelector into CodeComments so we can use it in more than one view