added better error reporting when bad xml is encountered

added method to reload/refresh vars

added method to rename vars ( may need testing )