added verbose flag
added environment flag to switch between Prod and Dev
fixed scope function
updated tests