Updated syntax, bug fixes, and comments for the while, repeat, and if/else functionalities.

Removed ! syntax and changed to "not".
Fixed a few bugs, in particular with else.
More detailed comments.