Added code, web interface is now mostly functional