Implemented config reloading. Closes #2.