Working on the Web UI and Daemon Mode. Fixed a few bugs.