Throw exception if incorrect number format decoded in command class

This PR changes the response to a format error with a received packet. Previously the error was caught and ZERO returned. This now throws a NumberFormat exception which is then caught in the command classes so that we can ignore the error rather than sending an invalid value into the system.