First commit

Fixed lots of bugs and put ID field for prompt