Switched Sonic-pi to be installed last due to dialog box
Cleaned up code