added returning vm info and checking if the vm exists before trying to create a new one. if the vm already exists it returns the vm info and exits.