Included NA-omit option in all function, added the theta-calculation
for the npVar-function.