Some comments, move noteview creation out of main