Heavily documented and redundant code stripped.
Simplified prompt box so resizing the window doesn't go nuts.