Added more comments to the code
Added code to cope with unconnected inputs
Added the possibility to add a sensor and connect it to all outputnodes
at once
Added a missing field to the parameters
Made it possible to work with nodes where traitID = 0
Removed out of bounds errors