Handling malformed modbus requests
minor cleaning
template fixes
Merge pull request #187 from glastopf/modbus_fixes

Modbus fixes