load_modes improved for POSIX, more tests, started work on docs for refcountable functions