fixing errors and bugs in create first visit method
merged conflicts
added import scripts and worked on staging creation