resolved some bugs regarding configuration variable in multi-threading environment
added license and copyright notice to files