Updated GUI code
Added digital circuit simulation engine