Added readonly functionality
Fixed small bug when multiple protocols per device were defined