WIP
Implemented createSegment and createSynapse