Improved logging, made a start on web interface