Moved argument parsing to another class

Also made it parse a list instead of an array for easier argument parsing.