Fixed two larger bugs

Loops now halt if they are not fully compiled.
The memory space is now set to 0.