mobile and Netduino script code clean up