comments, slight change to progress bar
results of debugging, fix several bugs - more needed though...