tidied up the code a bit
add an EXPORT sub.
make EXPORT tests weaker, make EXPORT "work"