Moved index handler and file watching to separate function. A few other minor cleanups.
Added description, installation, and usage.