added flags for all variables
got rid of flags. header works
changes