Completed settings editor

& many bug fixes
& general polish