Fixed bugs and updated the run_debug file.
Added missing licence texts.
Fixed bugs in the conf parser.