added wrapper class for instances; changed clustermanager to extend thread
wrapper for ec2 instances