added money log and fixed arduino code