fixed bugs and supported more features - settings and scripts now save correctly