Parsing of firmware version implemented

Parsing of firmware version implemented. To be used to handle changes
to protocol in different versions.