Added basic error checking and more detailed location variables to the create ca file