While loops completed

While loops now create the proper intermediate code.