Added bridgeID into json, fixed bug, ran dialyzer