added error checking in vector jar constructor