Added getCommand function to serial packet library