fix prompt bug, improve comments, and give prompt its own window struct