Modified error handling and mistakes in arduino comm. Tests in situ ok.