initialise statusdict if = None, tidy up comments