deals with flags, started work on generating the documentation