added new equaility check to the EC2Collector
formatted and changed a bunch, but really just made the write methods try a few times before giving up