Added function to initialize agent using user prompts. Fixed/added a few other things to previous functions