Adds run from command line options
Adds ipv4 purge functionality
Adds apiversion designation