clean up code, remove manual mode, add support for clearing log (dl?day=all)