ub_write_block_from_buffer is not internal any more
added Doxygen documentation
fixed a few compilation issues with GCC on Linux