Logic updated. Script should be more accurate. Added comments for the kids, even if the comments are terrible.