Start of argument parser class

Experimenting with typescript a bit so doesn't make much
sense now.