fixed various MAJOR errors which caused BlackLionTrader to not run properly