Non-deterministic random number generator support

Added support for non-deterministic random number generator. Removed
i/ofstream functions from itv_words class to streamline it with new
itv_table class architecture. Also includes many other improvements and
code optimisation etc.