Check for broken config on startup and reload.
Refactored some code.
Added a license.
Reformatted README.md