- Added settings dialog and logic.
- Added license headers
- Fixed repeat logic (thx Byron for pointing out my assumption was wrong ;-) )