Further work for Issue #6.
Modified help string for exit command.
Added toString method for gates.