Add a parse function and start implementing flags