CheckGenome method

Worked on checking a genome before it's decoded to set up the
simulation.
Things checked:
* Sequence is of required length
* Sequence within allowed range (Min/Max)
* Pulses end before phase reset
* Compound torque is within allowed range

Added AdvSeq method to Genome (code was repeated in 2-3 places)

BUG fixed: Number of outputs VS number of pulses (used for displaying
torques)
Merging with Genetic Algorithm

Apparently...
Merge with master (from Genetic Algorithm)
Merge with master
Merge remote-tracking branch 'origin/Simulation'