added a gate, and the possibility to rotate instances of BasicStructure