work in progress minor changes to prim

bug fix in select, cur_box is now correctly updated, and inspect uses
cur_box if i==None

start investigation of why density can sometimes slightly decrease