fixed bug when serial line does not agree to be cast as int and some formatting changes
using full paths and removing interactive confirmations so this can be run as cron job on reboot