Fixed prompt bug
Fixed more bugs (and probably introduced sixty or seventy more)
Added comments
Fixed many bugs and enhanced the UI