Make CIDR a parameter to be customized.
Added clean up codes.
Added security group settings to allow ssh/ping.