fix initFirmata() and add function descriptions