updates to ruby-pi script, testing basic script funcions