Fixed bugs causing crashes at the prompt, spacing errors, and looping
errors