adding createVector method closes #163, relates to issue #174