added some commenting
made some changes to modbus