formatting changes, fixed crashes, removed unneeded imports, changed settings layout