Add settings dropdown, theme support. Refactor code.