updated create implementation, added test createfcn