added range checks for QuantumGate constructors
added to manual and two minor changes to code
finished first draft of documentation