updated for a large number of integer variables
Updated the upload code to do simple numeric checking well for the input and added it to a template, config file writing now works as well