fix multiple edge patterns on same line were not parsed
set space optional before cardinality delimiter, fix issue #4
added a bunch of tests