added comments, more GUI stuff