First commit

Added threading, command line arguments, changed class with functions
to passable struct