Blank Title and Restructuring

Made assignments with blank titles show up as “<untitled>”.
Also, a bit of restructuring.