Add cli parser, do basic config validation