Updated with missing modules and required libraries
More testing and debugging output added to deploy functions