functionized duplicate error handling code
confirm that all objects in array are defined
version bump, 0.0.2