closes #3 added tests, extend supports array now