Added script selection and beginnings of io. Haven' tested or compiled, so it almost definitely doesn't work yet