Added debug commandline panel, fixed startup bug when calling from commandline