Change GPL license to MIT. Update settings module and fix minor bugs.