Bug fixes and user prompts

Squashed bugs and made user prompts and alerts. Added For loop.