Work on RNG and automatic command line parsing; add support for getting OS specific error messages