Reworked Bus logic, added RPC methods
Code-formatting