minor: code cleanup
added Options dialog, added missing files
use localstorage to remember settings